<template>
	<view class="container">
		<view class="header">
			<image src="https://cdn.uviewui.com/uview/swiper/1.jpg" mode=""></image>
			<view class="info">
				<view class="nick-name">
					纳米陈大大水水大大撒旦阿三大苏打大苏打
				</view>
				<view class="project">
					服务项目：代书遗嘱
				</view>
			</view>
		</view>
		
		<view class="common-list">
			<view class="common-item" v-for="item in 3" :key="item">
				<view class="common-header">
					<image class="avatar" src="https://cdn.uviewui.com/uview/swiper/1.jpg" mode=""></image>
					<view class="info">
						<view class="nick-name">
							纳米陈大大水水大大撒旦阿三大苏打大苏打
						</view>
						<view class="date">
							2021-09-29  22:24:26
						</view>
					</view>
				</view>
				
				<view class="common-content">
					<view class="rate">
						<text>我的评价</text>
						<view class="star">
							<uni-rate size="15" color="#D5D5D5" :disabled="true" disabledColor="#C0943F" v-model="start_num" />
							<text style="margin-left: 25rpx;">{{ start_num }}星</text>
						</view>
					</view>
					<view class="rate-text">
						评论的内容文字信息评论的内容文字信息评论的内容文字信息评论的内容文字信息评论的内容文字信息
					</view>
					<view class="rate-imgs">
						<image @click="checkBig('https://cdn.uviewui.com/uview/swiper/1.jpg')" src="https://cdn.uviewui.com/uview/swiper/1.jpg" mode=""></image>
						<image @click="checkBig('https://cdn.uviewui.com/uview/swiper/1.jpg')" src="https://cdn.uviewui.com/uview/swiper/1.jpg" mode=""></image>
						<image @click="checkBig('https://cdn.uviewui.com/uview/swiper/1.jpg')" src="https://cdn.uviewui.com/uview/swiper/1.jpg" mode=""></image>
					</view>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				start_num: 2
			}
		},
		methods: {
			
			// 查看大图
			checkBig(url) {
				uni.previewImage({
					urls: [url]
				})
			},
		}
	}
</script>

<style lang="scss" scped>
	.common-item {
		padding: 43rpx 0 10rpx;
	}
	.common-list {
		background-color: #FFF;
		margin-top: 17rpx;
		padding: 0 23rpx;
		}
		.common-content {
			margin-top: 34rpx;
			.star {
				display: flex;
				align-items: center;
				color: #C0943F;
				font-size: 22rpx;
			}
			.rate {
				display: flex;
				align-items: center;
				text {
					margin-right: 17rpx;
				}
			}
			.rate-text {
				color: #666;
				margin-top: 34rpx;
			}
			.rate-imgs {
				margin-top: 36rpx;
				image {
					width: 224rpx;
					height: 224rpx;
					vertical-align: middle;
					&:nth-child(2) {
						margin: 0 17rpx;
					}
				}
			}
		}
		.common-header {
			display: flex;
			align-items: center;
			.info {
				margin-left: 26rpx;
			}
			.nick-name {
				font-size: 28rpx;
			}
			.date {
				font-size: 22rpx;
				color: #CCCCCC;
				margin-top: 5rpx;
			}
			.avatar {
				width: 92rpx;
				height: 92rpx;
				vertical-align: middle;
				border-radius: 50%;
			}
		}
	.header {
		display: flex;
		padding: 47rpx 23rpx;
		background-color: #fff;
		.info{
			flex-grow: 1;
			margin-left: 26rpx;

			.project {
				font-size: 22prx;
				color: #53B3D9;
				margin-top: 10rpx;
			}
		}
		image {
			width: 80rpx;
			height: 80rpx;
			border-radius: 50%;
			vertical-align: middle;
		}
	}
	.nick-name {
		width: 300rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 32rpx;
	}

</style>
<style>
		page {
			background-color: #f6f6f6;
			font-size: 26rpx;
			color: #333;
		}
</style>
